package com.xio.cloud.service;

import com.xio.cloud.domain.Storage;
import com.baomidou.mybatisplus.extension.service.IService;
    /**
 * @Author: xio
 * @Description: ${Description}
 * @Date: 2021/3/31 20:58
 */
public interface StorageService extends IService<Storage>{

    /**
     * 减少库存
     *
     * @param productId 产品 id
     * @param count 使用量
     * @return: boolean
     */
    boolean decrease(Long productId, Integer count);
}
